﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Helpers;

namespace dotnethost.Watermark.Models
{
    public class WatermarkFont
    {
        public enum Style
        {
            Regular,
            Bold,
            Italic,
            Underline,
            Strikeout
        }
        public enum HAlign
        {
            Left,
            Right,
            Center
        }
        public enum VAlign
        {
            Top,
            Bottom,
            Middle
        }
        [Required(ErrorMessage="Please select color.")]
        public string FontColor { get; set; }
        [Required(ErrorMessage="Please input font size.")]
        public int FontSize { get; set; }
        [EnumDataType(typeof(WatermarkFont.Style))]
        public string FontStyle { get; set; }
        public string FontFamily { get; set; }
        [EnumDataType(typeof(WatermarkFont.HAlign))]
        public string HorizontalAlign { get; set; }
        public string VerticalAlign { get; set; }
        [Range(0,100,ErrorMessage="Must Between 0 and 100.")]
        public int Opacity { get; set; }
        [Required(ErrorMessage="Please input padding.")]
        public int Padding { get; set; }
        public WebImage image { get; set; }


        public WatermarkFont()
        {
        }
    }

}